package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {
    /*
     * 统计营业指定时间段的营业额
     * @param begin
     * @param end
     * @return
     * */
    TurnoverReportVO getTurnoverReportVO(LocalDate begin, LocalDate end);

    /*
     * 统计营业指定时间段的用户
     * @param begin
     * @param end
     * @return
     * */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /*
     * 统计订单
     * @param begin
     * @param end
     * @return
     * */
    OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);

    /*
     * 统计指定时间段的销量
     * @param begin
     * @param end
     * @return
     * */
    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);

    /*
     * 导出运营数据报表
     * @param response
     * */
    void exportBusinessData(HttpServletResponse response);
}
